unit UFormBancos;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, StdCtrls, ExtCtrls, UMarcacao, UBanco;

type
  TFormBancos = class(TForm)
    pnlBanco: TPanel;
    lblMesAno: TLabel;
    cmbMesAno: TComboBox;
    btnCalcular: TButton;
    StringGrid1: TStringGrid;
    procedure FormShow(Sender: TObject);
    procedure btnCalcularClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormBancos: TFormBancos;

implementation

{$R *.dfm}

procedure TFormBancos.btnCalcularClick(Sender: TObject);
begin
  ShowMessage(calcularSaldos(cmbMesAno.Items[cmbMesAno.ItemIndex]));
end;

procedure TFormBancos.FormShow(Sender: TObject);
var mesano:t_string; i:integer;
begin
  mesano := obterListaMesAno;
  for i := 0 to Length(mesano)-1 do
    cmbMesAno.Items.Append(mesano[i]);
end;

end.
